package com.quectel.cms.vo.datav;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author rananxin
 * @date 2021/12/6 5:07 下午
 */
@Data
@Schema
public class FireSafetyAlarmTrendVo {

    @Schema(description = "横轴数据")
    private String[] transverseAxis;

    @Schema(description = "告警趋势统计")
    private List<AlarmTreadItem> alarmTreadItems = new ArrayList<>();

    @Schema(description = "告警规则统计")
    private List<AlarmRuleItem> alarmRuleItems = new ArrayList<>();


    @Data
    @Schema
    public static class AlarmTreadItem {
        @Schema(description = "种类编码")
        private String code;

        @Schema(description = "种类名称")
        private String name;

        @Schema(description = "纵轴趋势")
        private Integer[] longitudinalAxis;
    }

    @Data
    @Schema
    public static class AlarmRuleItem {
        @Schema(description = "规则编码")
        private String code;

        @Schema(description = "规则名称")
        private String name;

        @Schema(description = "告警数")
        private Integer count;
    }

}
